package ace.cmp.spring.data.jdbc.test.controller;

import lombok.AllArgsConstructor;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author caspar
 * @date 2023/2/14 10:58
 */
@RestController
@AllArgsConstructor
public class UserController {
  private final ace.cmp.spring.data.jdbc.test.dao.repository.CASUserRepository CASUserRepository;

  @GetMapping("/test")
  public String test() {
    CASUserRepository.findAll(Sort.unsorted());
    return "success";
  }
}
